var scroll = function() {
		return {
			show : function(pName,count,pclass) {
				var index = 0;
				var itv = setInterval(function() {
					var strP = "#"+pName + index;
					var content = $(strP).html();
					$(strP).slideUp(1000,function(){$(strP).remove();});//滑出效果
					if (index == 0) {
						var tempStr="#"+pName+(count-1);
						var tempId=pName+index;					
						$(tempStr).after("<p id='"+tempId+"' "+pclass+">"+content+"</p");
					} else {
						var tempIndex=index-1;
						var tempId=pName+index;
						var tempStr = "#"+pName + tempIndex;					
						$(tempStr).after("<p id='"+tempId+"'  "+pclass+">"+content+"</p");
					}
					if(index==count-1){
						index=0;
					}else{
						index+=1;
					}

				}, "3000");
			}
		}
	}();